package com.xbenben.demo;

import com.xbenben.bean.Dept;
import com.xbenben.bean.Student;
import com.xbenben.bean.User;

import java.util.ArrayList;
import java.util.List;

public class GenericParadigm {


    private final static ArrayList<User> arrListUser = new ArrayList<>();
    private final static ArrayList<Student> arrListStudent = new ArrayList<>();
    private final static ArrayList<Dept> arrListDept = new ArrayList<>();


    static {


        arrListUser.add(new User(Long.valueOf(1), "张三", "北京"));
        arrListUser.add(new User(Long.valueOf(2), "李四", "天津"));
        arrListUser.add(new User(Long.valueOf(3), "田七", "北京"));
        arrListUser.add(new User(Long.valueOf(4), "西瓜", "北京"));

        arrListStudent.add(new Student(Long.valueOf(1), "张三", "北京"));
        arrListStudent.add(new Student(Long.valueOf(2), "李四", "天津"));
        arrListStudent.add(new Student(Long.valueOf(3), "田七", "北京"));
        arrListStudent.add(new Student(Long.valueOf(4), "西瓜", "北京"));

        arrListDept.add(new Dept(Long.valueOf(1), "张三", "北京"));
        arrListDept.add(new Dept(Long.valueOf(2), "李四", "天津"));
        arrListDept.add(new Dept(Long.valueOf(3), "田七", "北京"));
        arrListDept.add(new Dept(Long.valueOf(4), "西瓜", "北京"));


    }

    public static void main(String[] args) {


        setData(arrListUser, "2");

    }


    public static void setData(List<?> t, String tabletype) {


        System.out.println((5 * 60));
//        switch (tabletype) {
//            case "2": {
//            }
//            break;
//            case "1": {
//                ArrayList<User> xx = (ArrayList<User>) t;
//                for (User user : xx) {
//                    System.out.println(user.getUid());
//                }
//            }
//            break;
//            case "3": {
//            }
//            break;
//
//        }


    }


}
